package com.mgq.generic;

/**
 * @author MaGuangQi
 *
 * @date 2021-12-26 11:12
 **/
public class MiniCat extends Cat {
    private int level;

    public MiniCat(String name, int age, int level) {
        super(name, age);
        this.level = level;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "MiniCat{" +
                "level=" + level +
                "} " + super.toString();
    }
}
